package com.zzwtec.information.model;


/**
 * 广告
 * 
 * @author  草原狼
 * 
 * 2017年08月07日
 */
public class Ad {	
	//ID
	private String id;
	//名称
	private String name;
	//广告类别，0表示视频广告，1表示图片广告，2表示文字广告，3表示语音广告
	private int type;
	//播放时长，单位秒，最低5秒起
	private int timelength;
	//广告级别，0表示低级广告（普通用户发的），1表示一般广告（不分时段的），2表示高级广告（特定时段的）
	private int adLevel;
	//播放时间段，针对高级广，格式，如11:30-14:00，多个用英文逗号分隔
	private String playTime;
	//广告文件容量大小，单位B
	private long size;
	//标识是否要提交审核，0草稿，1发布
	private boolean fabu;
	//发布者类型，0表广告商管理员，1表示普通用户
	private int userType;
	//创建人ID
	private String createId;
	//上架时间
	private long onTime;
	//下架时间
	private long offTime;
	//广告文件，文件存储表的id，多个用英文逗号分隔
	private String files;
	//文字广告，如果是语音广告格式为{"tex":"合成的文本","spd":"语速","pit":"音调","vol":"音量","per":"发音人"}
	private String adtext;
	
	
	public void setId(String id){		 
		this.id = id;
	}
	
	public String getId(){
		return this.id;
	}
	
	public void setName(String name){		 
		this.name = name;
	}
	
	public String getName(){
		return this.name;
	}
	
	public void setType(int type){		 
		this.type = type;
	}
	
	public int getType(){
		return this.type;
	}
	
	public void setTimelength(int timelength){		 
		this.timelength = timelength;
	}
	
	public int getTimelength(){
		return this.timelength;
	}
	
	public void setAdLevel(int adLevel){		 
		this.adLevel = adLevel;
	}
	
	public int getAdLevel(){
		return this.adLevel;
	}
	
	public void setPlayTime(String playTime){		 
		this.playTime = playTime;
	}
	
	public String getPlayTime(){
		return this.playTime;
	}
	
	public void setSize(long size){		 
		this.size = size;
	}
	
	public long getSize(){
		return this.size;
	}
	
	public void setFabu(boolean fabu){		 
		this.fabu = fabu;
	}
	
	public boolean isFabu(){
		return this.fabu;
	}
	
	public void setUserType(int userType){		 
		this.userType = userType;
	}
	
	public int getUserType(){
		return this.userType;
	}
	
	public void setCreateId(String createId){		 
		this.createId = createId;
	}
	
	public String getCreateId(){
		return this.createId;
	}
	
	public void setOnTime(long onTime){		 
		this.onTime = onTime;
	}
	
	public long getOnTime(){
		return this.onTime;
	}
	
	public void setOffTime(long offTime){		 
		this.offTime = offTime;
	}
	
	public long getOffTime(){
		return this.offTime;
	}
	
	public void setFiles(String files){		 
		this.files = files;
	}
	
	public String getFiles(){
		return this.files;
	}
	
	public void setAdtext(String adtext){		 
		this.adtext = adtext;
	}
	
	public String getAdtext(){
		return this.adtext;
	}
	
	@Override
	public String toString() {
		return "Ad [id="  +id+ ", name="  +name+ ", type="  +type+ ", timelength="  +timelength+ ", adLevel="  +adLevel+ ", playTime="  +playTime+ ", size="  +size+ ", fabu="  +fabu+ ", userType="  +userType+ ", createId="  +createId+ ", onTime="  +onTime+ ", offTime="  +offTime+ ", files="  +files+ ", adtext="  +adtext+ "]";
	}
}
